/* pages/merchant/merchant.wxss */

.page-merchant {
  background-color: #f7f7f8;
  position: relative;
  &.fixed{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    padding-top: 130rpx;
  }
}

.query {
  height: 100rpx;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22rpx;
  color: #A1A6B3;
  background-color: #fff;
  border-top: 1rpx solid #f7f7f8;
  position: fixed;
  top: 100rpx;
  z-index: 400;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  image {
    width: 30rpx;
    height: 30rpx;
  }
  > .add, .filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    &.add {
      margin-right: 20rpx;
      padding-left: 20rpx;
    }
    &.filter {
      margin-left: 20rpx;
      padding-right: 20rpx;
    }
  }
  > .search {
    flex: 1;
    > text {
      margin-left: 16rpx;
      font-size: 30rpx;
    }
  }
}

/* 筛选器的弹层样式 开始 */
.filter-dialog {
  background-color: red;
  width: 100%;
  position: fixed;
  z-index: 999;
  top: 100rpx;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  font-size: 28rpx;
  background: rgba(0, 0, 0, 0.4);
}

.filter-dialog > .left-sidebar {
  flex: 1;
}

.filter-dialog > .city-container {
  width: 620rpx;
  height: 100%;
  background-color: #fff;
  overflow: scroll;
}

.filter-dialog > .city-container > .header {
  height: 88rpx;
  border-top: 1rpx solid #e5e5e5;
  border-bottom: 1rpx solid #e5e5e5;
  display: flex;
  align-items: center;
  padding: 0 20rpx;
}

.filter-dialog > .city-container > .header > image {
  width: 13rpx;
  height: 24rpx;
}

.filter-dialog > .city-container > .header > .title {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  color: #20232C;
}

.filter-dialog > .city-container > .tags-container {
  display: flex;
  flex-wrap: wrap;
  padding: 30rpx 10rpx;
}

.filter-dialog > .city-container > .tags-container > text {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180rpx;
  height: 72rpx;
  border-radius: 6rpx;
  box-sizing: border-box;
  border: 1rpx solid #A1A6B3;
  margin: 10rpx;
}

.filter-dialog > .city-container > .tags-container > text.active {
  color: #00ADE7;
  border-color: #00ADE7;
}

.filter-dialog > .form-container {
  width: 620rpx;
  height: 100%;
  border-top: 1rpx solid #eee;
  background-color: #fff;
  position: relative;
  overflow: auto;
}

.filter-dialog > .form-container > .form {
  padding: 40rpx 20rpx 200rpx;
}

.filter-dialog > .form-container > .form > .form-item + .form-item {
  margin-top: 40rpx;
}

.filter-dialog > .form-container > .form > .form-item > .label {
  color: #20232C;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-dialog > .form-container > .form > .form-item > .label > .more {
  display: flex;
  align-items: center;
  color: #A1A6B3;
}

.filter-dialog > .form-container > .form > .form-item > .label > .more > image {
  margin-left: 16rpx;
  width: 13rpx;
  height: 24rpx;
}

.filter-dialog > .form-container > .form > .form-item > .tags-container {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10rpx;
}

.filter-dialog > .form-container > .form > .form-item > .tags-container > text {
  margin: 20rpx 10rpx 0;
  width: 176rpx;
  height: 72rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 1rpx solid #A1A6B3;
  border-radius: 6rpx;
  color: #A1A6B3;
}

.filter-dialog > .form-container > .form > .form-item > .tags-container > text.active {
  border-color: #00ADE7;
  color: #00ADE7;
}

.filter-dialog > .form-container > .form > .form-item .picker-date-view {
  margin-top: 20rpx;
  width: 580rpx;
  height: 80rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1rpx solid #A1A6B3;
  border-radius: 6px;
  color: #20232C;
}

.filter-dialog > .form-container > .form > .form-item .picker-date-view > .range {
  padding: 0 10rpx;
  color: #A1A6B3;
}

.filter-dialog > .form-container > .operate {
  height: 110rpx;
  display: flex;
  font-size: 34rpx;
  background-color: #fff;
  position: fixed;
  z-index: 9999;
  bottom: 0rpx;
  right: 0rpx;
}

.filter-dialog > .form-container > .operate > .reset {
  width: 260rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1rpx solid #00ADE7;
  color: #00ADE7;
}

.filter-dialog > .form-container > .operate > .submit {
  width: 360rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: #00ADE7;
}

.page-merchant > .scroll-list-header {
  padding: 0 20rpx;
  font-size: 28rpx;
  font-family: PingFangSC-Medium;
}

.page-merchant > .scroll-list-item {
  padding: 0 20rpx;
  font-size: 28rpx;
}

.page-merchant > .scroll-list-item > .item {
  margin-top: 20rpx;
  padding: 26rpx 20rpx;
}

.page-merchant > .scroll-list-item > .item > .item-title {
  display: flex;
  justify-content: space-between;

  .header {
    max-width: 480rpx;
    font-family: PingFangSC-Medium;
    font-size: 30rpx;
    line-height: 40rpx;
    color: #20232C;
    word-wrap: break-word;
  }

  .action {
    margin-right: -20rpx;
  }

  .action button {
    color: #A1A6B3;
    padding: 0 10px;
    display: inline-block;
    background-color: transparent;
    border: none;
    font-size: 28rpx;
    line-height: 40rpx;
  }
}

.page-merchant > .scroll-list-item > .item > .item-title > .is-post-pay, .group_buy, .freeze {
  margin-left: 10rpx;
  transform: translateY(-5rpx);
  display: inline-block;
  width: 52rpx;
  line-height: 40rpx;
  font-size: 20rpx;
  color: #FFFFFF;
  text-align: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 0 6rpx;
}

.page-merchant > .scroll-list-item > .item > .item-title > .is-post-pay {
  background-image: url("");
}

.page-merchant > .scroll-list-item > .item > .item-title > .group_buy {
  background-image: url("");
}

.page-merchant .scroll-list-item > .item > .item-title > .freeze {
  background-image: url("");
}

.page-merchant > .scroll-list-item > .item > .item-description {
  margin-top: 22rpx;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 28rpx;
  line-height: 28rpx;
  color: #A1A6B3;
}

.page-merchant > .scroll-list-item > .item > .item-description > .city {
  max-width: 360rpx;
}

.page-merchant > .list-footer {
  padding: 20rpx 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28rpx;
  color: #A1A6B3;
}

/* 公用卡片 */
.card {
  background: #fff;
  border-radius: 8rpx;
  -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
